/*
 * Copyright 2010-2011 ESunny.com All right reserved. This software is the confidential and proprietary information of
 * ESunny.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with ESunny.com.
 */
package com.xjt.query.entity;

import com.xjt.common.PageInfo;
import com.xjt.common.StringUtils;
import com.xjt.common.Types.LEADS_SOURCE;

/**
 * leads检索用
 * 
 * @author Jet Xu 2012-8-3 下午2:35:29
 */
public class LeadsQueryVo extends PageInfo {

    private static final long serialVersionUID = 8331797345318506210L;

    private Long              id;

    private String            tableName;

    /** leads来源:1.阿里 2.慧聪 */
    private Integer           leadsSource;

    /** 时间间隔 */
    private Integer           dateInterval;

    /** 行业 */
    private String            industry;

    /** 省份 */
    private Integer           province;

    /** 城市 */
    private Integer           city;

    /**
     * @return the tableName
     */
    public String getTableName() {
        if (StringUtils.isBlank(tableName) && null != leadsSource) {
            if (leadsSource.intValue() == LEADS_SOURCE.ALI) {
                tableName = "ali_company_info";
            } else if (leadsSource.intValue() == LEADS_SOURCE.HC) {
                tableName = "hc_company_info";
            } else if (leadsSource.intValue() == LEADS_SOURCE.ES) {
                tableName = "es_company_info";
            }
        }
        return tableName;
    }

    /**
     * @param tableName the tableName to set
     */
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    /**
     * @return the leadsSource
     */
    public Integer getLeadsSource() {
        return leadsSource;
    }

    /**
     * @param leadsSource the leadsSource to set
     */
    public void setLeadsSource(Integer leadsSource) {
        this.leadsSource = leadsSource;
    }

    /**
     * @return the dateInterval
     */
    public Integer getDateInterval() {
        return dateInterval;
    }

    /**
     * @param dateInterval the dateInterval to set
     */
    public void setDateInterval(Integer dateInterval) {
        this.dateInterval = dateInterval;
    }

    /**
     * @return the industry
     */
    public String getIndustry() {
        return industry;
    }

    /**
     * @param industry the industry to set
     */
    public void setIndustry(String industry) {
        this.industry = industry;
    }

    /**
     * @return the province
     */
    public Integer getProvince() {
        return province;
    }

    /**
     * @param province the province to set
     */
    public void setProvince(Integer province) {
        this.province = province;
    }

    /**
     * @return the city
     */
    public Integer getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(Integer city) {
        this.city = city;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

}
